package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 *<p>
 *项目采购entity
 *</p>
 * @author ZhouWu
 * @date 2022/8/30 16:22
 */

@Getter
@Setter
@ToString
@TableName("pro_purchase")
public class ProPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pur_id", type = IdType.AUTO)
    private Integer purId;  //采购自增id

    @TableField(value = "pro_id",property = "project.proId")
    private Project project;  //需要采购的项目

    private String purName;    //采购物资名称

    private String purDetail;   //采购明细

    private String supplier;    //供应商

    private BigDecimal purPrice;   //采购价格

    private Integer purNum;    //采购数量

    private String purDate;     //采购日期

    private String purStatus;   //采购状态

    public Integer getPurId() {
        return purId;
    }

    public void setPurId(Integer purId) {
        this.purId = purId;
    }

    public String getPurName() {
        return purName;
    }

    public void setPurName(String purName) {
        this.purName = purName;
    }
    public String getPurDetail() {
        return purDetail;
    }

    public void setPurDetail(String purDetail) {
        this.purDetail = purDetail;
    }
    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }
    public BigDecimal getPurPrice() {
        return purPrice;
    }

    public void setPurPrice(BigDecimal purPrice) {
        this.purPrice = purPrice;
    }
    public Integer getPurNum() {
        return purNum;
    }

    public void setPurNum(Integer purNum) {
        this.purNum = purNum;
    }
    public String getPurDate() {
        return purDate;
    }

    public void setPurDate(String purDate) {
        this.purDate = purDate;
    }
    public String getPurStatus() {
        return purStatus;
    }

    public void setPurStatus(String purStatus) {
        this.purStatus = purStatus;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }

}
